Skip to content

Avoid race conditions and multiple agent discovery feature states - #9135

Merged
amarziali merged 2 commits into
masterfrom
andrea.marziali/css2
Jul 10, 2025
Merged

Avoid race conditions and multiple agent discovery feature states#9135
amarziali merged 2 commits into
masterfrom
andrea.marziali/css2

Conversation

@amarziali

Copy link
Copy Markdown
Contributor

What Does This Do

If multiple calls are done to SharedCommunicationObjects.featureDiscovery(..) it might happen that multiple DDAgentFeatureDiscovery instances are created.
This discovery instance must be unique in order to ensure that, tracer-wise, we keep the same vision of the state of the agent.

This PR just add a synchronized block around that creation

Motivation

Additional Notes

Contributor Checklist

Jira ticket: [PROJ-IDENT]

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: core Tracer core type: bug fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants